#include <iostream>
#include <math.h>
using namespace std;

int main()
{

    int a=8671518;
    int b;
    int c;
 b=a/100;
 c=b%10;
 cout<<a<<"\n";
    cout<<b<<"\n";
   cout<<c;
    return 0;
}

